CXXFLAGS += -std=c++98 -g -O2 -Wall
LDFLAGS += -lrt


NAME = NetAlign
SNAP = /u/gxj/snap/libs/snap
GLIB = /u/gxj/snap/libs/glib

all: $(NAME)
opt: CXXFLAGS += -O4
opt: LDFLAGS += -O4
opt: $(NAME)

$(NAME): $(NAME).cpp Snap.o
	g++ -fopenmp $(LDFLAGS) -o $(NAME) $(NAME).cpp Snap.o -I$(GLIB) -I$(SNAP)

Snap.o: 
	g++ -c $(CXXFLAGS) $(SNAP)/Snap.cpp -I$(GLIB) -I$(SNAP)

clean:  
	rm -f *.o $(NAME) $(NAME).exe


